/**
 * Created by Jacky
 *
 * brief :
 */


define('ssq/Helper', function(require){

    var SSQ = require('ssq/Object');

    function addZero(num){
        if(num<10){
            num = '0' + num.toString()
        }
        else{
            num = num.toString();
        }
        return num;
    }

    var hong = ['NA'], lan = ['NA'];
    for(var i= 1,len=34; i<len; i++){
        hong.push(addZero(i));
    }
    for(var i= 1,len=17; i<len; i++){
        lan.push(addZero(i));
    }

    var Helper = {
        Const : {
            HONG : hong,
            LAN : lan
        }
    };



    var Factory = Helper.Factory = {
        get : function(opts){
            return new SSQ(opts);
        }
    };


    /*
    * @brief : 杀号
    * */
    var Kill = Helper.Kill = {


        /*
        * 返回所有被杀掉的红号
        * */
        getAllByLast : function(ssq){
            var rs = [];

            var tmp;
            tmp = ssq.h6_minus_h1();
            rs.push(hong[tmp]);

            tmp = ssq.h5_minus_h4();
            rs.push(hong[tmp]);

            tmp = ssq.h5_minus_h2();
            rs.push(hong[tmp]);

            return rs;
        },

        /*
        * 获得红胆号
        * */
        getHongDanByLast : function(ssq){
            var rs = [];


        }
      };


    return Helper;

});